package com.Shoping.dao.impl;

import com.Shoping.dao.ShoppingDao;
import com.Shoping.util.DbUtils;
import org.apache.commons.dbutils.QueryRunner;

import java.sql.SQLException;

public class ShoppingDaoImpl implements ShoppingDao {
    private QueryRunner queryRunner = new QueryRunner();
    @Override
    public void createShopping(Integer getsId) throws SQLException {
        String sql = "INSERT INTO shopping(u_id) VALUE(?);";
        queryRunner.update(DbUtils.getConnection(),sql,getsId);
    }
}
